<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3><strong> CATEGORIA:</strong>  <?php echo $subclaseslaboratorio; ?></h3>   
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_8">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>PARAMETROS DEL LABORATORIO: <?php echo $nombre; ?></h6>
                </div>
                <div class="widget_content">                    
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Num</th>                                        
                                <th>Nombre</th> 
                                <th>Rango</th>
                                <th>Descripcion</th>                                
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $i = 1;
                            foreach ($parametros as $p):
                                ?>
                                <tr class="gradeA">

                                    <td><?php echo $i;?> </td> 
                                    <td><?php echo h($p['Laboratoriosparametro']['nombre']);?></td>
                                    <td><?php echo h($p['Laboratoriosparametro']['rango']);?></td>
                                    <td><?php echo h($p['Laboratoriosparametro']['descripcion']);?></td>
                                    <td>
                                     <?php echo $this->Ajax->link('EDITAR', array('action' => 'ajaxeditarparametro', $p['Laboratoriosparametro']['id'] ), array( 'update' => 'cargaedit', 'title' => 'Edicion de datos', 'escape' => false));?>
                                        &nbsp;
                                        
                                        <?php echo $this->Html->link('ELIMINAR', array('action' => 'deleteparametro', $p['Laboratoriosparametro']['id'], $p['Laboratoriosparametro']['laboratorio_id']), null, 'esta seguro de eliminar el parametros item # ' . $i . '?') ?>
                                    </td> 
                                </tr>                           
                                <?php
                                $i++;
                            endforeach;
                            ?>
                        </tbody>
                         
                    </table>
                </div>
            </div>
        </div>
        <div class="grid_4">
        <div  id="cargaedit">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon list"></span>
                    <h6>Parametros de: <?php echo $nombre; ?></h6>
                </div>
                <div class="widget_content">                    
                    <?php echo $this->Form->create('Laboratorio', array('action'=>'parametros','id' => 'regitstraion_form', 'class' => 'form_container left_label')); ?>
                    <?php echo $this->form->hidden('Laboratoriosparametro.laboratorio_id', array('value'=>$id)) ?>
                    <ul>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="password">Nombre <span class="req">*</span></label>
                                <div class="form_input">
                                    <?php echo $this->Form->text('Laboratoriosparametro.nombre', array('tabindex' => 1, 'class' => 'required mid')); ?>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title">Rango</label>
                                <div class="form_input">
                                    <select name="data[Laboratoriosparametro][rango]">
                                        <option value="dentro">
                                            Dentro de rango
                                        </option>
                                        <option value="fuera">
                                            Fuera de rango
                                        </option>
                                    </select>
                                    
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="password">Descripcion</span></label>
                                <div class="form_input">                                
                                    <?php echo $this->Form->text('Laboratoriosparametro.descripcion', array('tabindex' => 1)); ?>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="form_grid_12">
                                <div class="form_input">
                                    <button type="submit" class="btn_small btn_blue"><span>Registrar</span></button>
                                    <button type="reset" class="btn_small btn_blue"><span>Limpiar datos</span></button>
                                    <?php echo $this->Html->link('ATRAS', array('action'=>'index'), array('escape'=>false));?>
                                </div>
                            </div>
                        </li>
                    </ul>
                    </form>
                </div>
            </div>
        </div>
       </div>
    </div>
</div>
